import random

# print(random.randint(1,10))
# print(random.randrange(1,10))

list1 = [1,2,3,4]
# print(random.sample(list1,k = 2))  #  取样  无放回的取
# print(random.choices(list1,k = 2))  #  有放回的取
print(random.choice(list1))

# random.shuffle(list1)  #  在原序列 list1中改变顺序
# print(list1)

# random.seed(10)
# print(random.randint(1,10))
# print()
# random.seed(10)
# print(random.randint(1,10))